package com.service;

import com.github.pagehelper.PageInfo;
import com.pojo.Floormanager;
import com.vo.FloorManagerVo;
import com.vo.TreeVo;

import java.util.List;

public interface FloormanagerService {

    /*
    * 查询所有楼栋
    * */

    public PageInfo<Floormanager> selectallFloor(FloorManagerVo floorManagerVo);

/***
 * 添加楼栋
 */
 public void insertFloor(Floormanager floormanager);

    /***
     * 修改楼栋
     */
    public void updareFloor(Floormanager floorManager);


    /***
     *删除楼栋
     */
    public void deleteFloor(Integer id);

    /**
     * 查询树状权限
     * @return
     */
    public List<TreeVo> queryTreefloorData(Integer plotid);
    /*
     * 根据id查询小区外键
     * */
    public int selectplotidbyid(Integer id);

    public int selectfloorbyplotid(Integer id);
   /**
    * 根据小区id查询总栋数
    */
   public int selecttotalbyplotid(Integer id);
}